import Vue from 'vue'
import './plugins/axios'
import App from './App.vue'
import router from './router'
import store from './store'
import "./assets/iconfont/iconfont.css"

import {
    Swipe,
    SwipeItem,
    Image,
    Grid,
    GridItem,
    Icon,
    NoticeBar,
    Tabbar,
    TabbarItem,
    IndexBar,
    IndexAnchor,
    Button,
    Form,
    Field,
    Tabs,
    Tab,
    Toast,
    Dialog,
    Badge,
    Search,
    Divider,
    Sidebar,
    SidebarItem
} from 'vant'
import 'vant/lib/index.css'
Vue.config.productionTip = false
Vue.use(Form).use(Field).use(Button)
Vue.use(IndexBar).use(IndexAnchor) //索引栏
Vue.use(Tabbar).use(TabbarItem)
Vue.use(Grid).use(GridItem);
Vue.use(Swipe).use(SwipeItem);
Vue.use(Image)
Vue.use(Icon).use(NoticeBar).use(Toast).use(Dialog).use(Badge)
Vue.use(Tabs).use(Tab) //标签栏 --- 用于登录方式的切换
Vue.use(Search); //首页搜索框
Vue.use(Divider); //分割线
Vue.use(Sidebar);
Vue.use(SidebarItem);

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')